﻿<?php
	
	require_once $_SERVER['DOCUMENT_ROOT'] . "/chimera/dao/ConteudoDAO.class.php";
	
	//set_error_handler("customError");
	
	$action = $_GET['action'];
		
	if($action == 3445){
		add::addConteudo();
	}
	
	class add{
    	
		public function addConteudo(){
			
			$idcategorias = $_POST['categoria'];
			$assunto = $_POST['assunto'];
			$conteudo = $_POST['conteudo'];
			$tags = $_POST['tags'];
			
			$conteudodao = new ConteudoDAO();
			$conteudodao->add($assunto, $conteudo, $idcategorias, $tags);
			
			
		}
		    
    }
	
?>